package bsplib.q3bsp;

import flash.utils.ByteArray;

class Q3Vec3i
{
    public var x : Int;
    public var y : Int;
    public var z : Int;
    
    public function new( _x : Int, _y : Int, _z : Int )
    {
        x = _x;
        y = _y;
        z = _z;
    }
    
    public static function FromByteArray( data : ByteArray ) : Q3Vec3i {
        var x = data.readInt();
        var y = data.readInt();
        var z = data.readInt();
        return new Q3Vec3i( x, y, z );
    }
}